/**
 * 
 */
package reuseplugin.preferences;

import org.eclipse.jface.preference.StringButtonFieldEditor;
import org.eclipse.swt.widgets.Composite;

import reuseplugin.Activator;
import reuseplugin.login.LoginDialog;

/**
 * @author Julius Ollesch
 * 
 */
public class UserStringButtonFieldEditor extends StringButtonFieldEditor {

	/**
	 * 
	 */
	public UserStringButtonFieldEditor() {
		
	}

	/**
	 * @param name
	 * @param labelText
	 * @param parent
	 */
	public UserStringButtonFieldEditor(String name, String labelText,
			Composite parent) {
		super(name, labelText, parent);

		
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.preference.StringButtonFieldEditor#changePressed()
	 */
	@Override
	protected String changePressed() {
		// TODO Auto-generated method stub
		new LoginDialog(true);
		return Activator.getDefault().getPreferenceStore().getString(
				"userPreference");
	}

}
